<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Bar</title>

</head>
<body>

<div id="errors">
	<ul>
		<c:forEach items="${errors}" var="error" >
			<li>${error.category } - ${error.message }</li>
		</c:forEach>
	</ul>
</div>
	
	<h1>Cadastrar novo Bar</h1>

	<form action="<c:url value="/bars"/>" method="POST">
		
		
		<div data-role="fieldcontain">
		    <label for="name">Name:</label>
			<input id="name" type="text" name="bar.name" value="${bar.name }"/>
		</div>
		
		
		<div data-role="fieldcontain">
			<label for="description">Description:</label>
			<input id="description" type="text" name="bar.description" value="${bar.description }"/>
		</div>
		
		<div data-role="fieldcontain">
			<label for="quality">Quality:</label>
			<input id="quality" type="text" name="bar.quality" value="${bar.quality }"/>
		</div>
		
		<button type="submit">Salvar</button>

	</form>

</body>
</html>